Parsing everything only if the string is not empty