use trim() instead of assuming