added advanced hints, trimmed user input