remove unnecessary text from String before extracting color