Defaulting enter key and trimming ID