evaluates an user entered strings first and last character