Fixed Bug with brackets in getFirstWord