String Parsing - What am I messing up?

I am sorry I dont it :frowning:

I understand that were looking for the start point and starting to "record" then on the end point stopping "recording" but I dont get how the variable brightnessVal gets set during this recording...