Fixed undefined index if valid header $string begins with whitespaces