Remove trailing whitespace
Check primary keys for foreign key and one-to-one fields