Remove the .trim() call - it shouldn't be necessary.